package org.andao.core.dao.jdbc;

import javax.annotation.Resource;
import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * 默认的jdbcSupport支持.
 *  
 * @author Seewo software - Marco.hu(huzhiguo@cvte.cn)
 */
@Repository("defaultJdbcSupportDao")
public class DefaultJdbcSupportDao implements JdbcSupportDao {

	public BaseJdbcTemplate baseJdbcTemplate;	
	
	@Autowired
	@Resource(name="dataSource")
	public void setDataSource(DataSource dataSource){
		baseJdbcTemplate = new BaseJdbcTemplate(dataSource);
	}


	public BaseJdbcTemplate getBaseJdbcTemplate() {
		return baseJdbcTemplate;
	}
	
	
}
